FilterEverything\Filter\FilterFields D

Total Complexity 230
Dependencies 4
Dependents 3
Total lines 1,455
Lines of code 1,047
Logical lines of code 499
Comment lines 159
Methods 34
Properties 5

Methods 34

Method Rating Maintainability Complexity Lines of code
validateTheFilter()
D
21
53 197
prepareFilterInputsToDisplay()
D
26
50 123
sanitizeFilterFields()
A
43 11 49
setupDefaultFields()
A
28
1 193
entityBelongsToPostType()
A
51 10 28
sendExcludedTerms()
A
47 9 36
ajaxDeleteFilter()
A
50 9 28
validateFilters()
A
51 9 26
ajaxValidateFilters()
A
50 9 26
pushError()
A
54 8 22
getFilterNames()
S
52 7 23
fillErrorsMessages()
S
58 5 15
deleteRelatedFilters()
S
56 4 18
saveFilter()
S
49 3 30
getFiltersInputs()
S
62 4 11
getErrorsList()
S
41 1 56
getFieldsByType()
S
63 4 10
addSpinnerToSelect()
S
59 3 14
filterBelongsToPostType()
S
61 3 12
getErrorCodes()
S
66 3 9
isTaxonomyBelongsToPostType()
S
65 3 9
deleteFilter()
S
65 3 10
prepareFilterCheckboxFields()
S
64 3 10
getInsteadEntityField()
S
57 1 16
registerHooks()
S
63 2 10
getErrorMessage()
S
69 2 7
getErrors()
S
72 2 6
generateInputName()
S
68 2 7
getOrderByOptions()
S
59 1 14
getEmptyFilterObject()
S
62 1 11
getFieldsMapping()
S
82 1 3
getViewOptions()
S
63 1 10
generateInputID()
S
78 1 3
__construct()
S
73 1 5